#include "widget.h"
#include "ui_widget.h"
#include "ui_pieconfig.h"

#include <QDebug>

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    m_ui(new Ui::Widget), m_configUi(new Ui::PieConfig)
{
    QWidget* configWidget = new QWidget(this);
    m_configUi->setupUi(configWidget);

    m_ui->setupUi(this);

    // setup configUi
    m_ui->configLayout->addWidget(configWidget); // must put after m_ui has been constructed
}

Widget::~Widget()
{
    delete m_ui;
    delete m_configUi;
}

void Widget::on_explodeDistanceFactorSpinBox_valueChanged(double arg1)
{
    qDebug() << __FUNCTION__ << arg1;
}

void Widget::on_showLabelsCheckBox_toggled(bool checked)
{
    qDebug() << __FUNCTION__ << checked;
}

void Widget::on_configGroupBox_toggled(bool arg1)
{
    qDebug() << __FUNCTION__ << arg1;
}
